package entity.marketingEntity;

import java.util.Date;

public class Adlist {
    private Integer ad_id;

    private String ad_name;

    private Integer ad_position;

    private Date start_time;

    private Date end_time;

    private Integer state;

    private String pic;

    private Integer sort;

    private String url;

    private String description;

    public Integer getAd_id() {
        return ad_id;
    }

    public void setAd_id(Integer ad_id) {
        this.ad_id = ad_id;
    }

    public String getAd_name() {
        return ad_name;
    }

    public void setAd_name(String ad_name) {
        this.ad_name = ad_name == null ? null : ad_name.trim();
    }

    public Integer getAd_position() {
        return ad_position;
    }

    public void setAd_position(Integer ad_position) {
        this.ad_position = ad_position;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic == null ? null : pic.trim();
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ad_id=").append(ad_id);
        sb.append(", ad_name=").append(ad_name);
        sb.append(", ad_position=").append(ad_position);
        sb.append(", start_time=").append(start_time);
        sb.append(", end_time=").append(end_time);
        sb.append(", state=").append(state);
        sb.append(", pic=").append(pic);
        sb.append(", sort=").append(sort);
        sb.append(", url=").append(url);
        sb.append(", description=").append(description);
        sb.append("]");
        return sb.toString();
    }
}